<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<form method="post">
    <table bgcolor="#faebd7" border="1">
        <th>dept_id</th>
        <th>dept_name</th>
        <th>major_name</th>
        <th>telephone</th>
        <th>email</th>
        <c:forEach items="${allDept}" var="dept">

            <tr>
                <td>${dept.dept_id}</td>
                <td>${dept.dept_name}</td>
                <td>${dept.major_name}</td>
                <td>${dept.telephone}</td>
                <td>${dept.email}</td>
            </tr>
        </c:forEach>
    </table>
</form>
</body>
</html>
